from flask import Flask
from redis import Redis


def init_redis(app: Flask):
    app.redis_client = Redis(host=app.config['REDIS_HOST'], port=app.config['REDIS_PORT'], db=app.config['REDIS_DB'],
                             decode_responses=True)
